public class Employee extends Member
{
	protected int year;
	protected String Depart;
	public Employee()
	{
		set();
	}
	public Employee(Employee s)
	{
		super(s);
		year=s.year;
		Depart=new String(s.Depart);
	}
	public void set()
	{
		super.set();
		year=rdm.nextInt(20)+1980;
                Depart=Names.department[rdm.nextInt(Names.department.length)];
	}
	public String toString()
	{
		return super.toString()+String.format("%1.2s %-d",Depart,year);
	}
	public String toTableRow( boolean partial ) {
		return  
		( 
				! partial ? "\n    <TR>\n" : "" ) + super.toTableRow( true ) + 
				String.format( "<TD>%1.2s </TD><TD>%50d</TD>",Depart,year ) + 
				( !partial ? "\n    </TR>\n" : "");
		}		
}
